home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Libraries / stdwin / Appls / miniedit / regexp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-10-25  |  683 b   |  31 lines  |  [TEXT/????]

  1. /*
  2.  * Definitions etc. for regexp(3) routines.
  3.  *
  4.  * Caveat:  this is V8 regexp(3) [actually, a reimplementation thereof],
  5.  * not the System V one.
  6.  */
  7.  
  8. #ifdef THINK_C
  9. #define STATIC /**/
  10. #endif
  11. #define MULTILINE
  12.  
  13. #define NSUBEXP  10
  14. typedef struct regexp {
  15.     char *startp[NSUBEXP];
  16.     char *endp[NSUBEXP];
  17.     char regstart;        /* Internal use only. */
  18.     char reganch;        /* Internal use only. */
  19.     char *regmust;        /* Internal use only. */
  20.     int regmlen;        /* Internal use only. */
  21.     char program[1];    /* Unwarranted chumminess with compiler. */
  22. } regexp;
  23.  
  24. extern regexp *regcomp();
  25. extern int regexec();
  26. #ifdef MULTILINE
  27. extern int reglexec();
  28. #endif
  29. extern void regsub();
  30. extern void regerror();
  31.